package com.hdoit.kylin.web.studentManager.modelconfig;

import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author anshengqiang
 * @email
 * @createtime 2017年07月26日 16:21:28
 * @comment
 */
public class ReadDocumentConfig extends ModelMetadataAttributeConfiguration {
	public ReadDocumentConfig() {
		this.setProperty("documentName").hasAttribute(new DisplayNameAttribute("文献名")).hasAttribute(new RequiredAttribute("文献名为必填项"));
		this.setProperty("author").hasAttribute(new DisplayNameAttribute("作者")).hasAttribute(new RequiredAttribute("作者为必填项"));
		this.setProperty("press").hasAttribute(new DisplayNameAttribute("文章来源")).hasAttribute(new RequiredAttribute("文章来源为必填项"));
		this.setProperty("fileAddress").hasAttribute(new DisplayNameAttribute("文件地址"));
		this.setProperty("serialNumber").hasAttribute(new DisplayNameAttribute("刊号"));
		this.setProperty("pageNumber").hasAttribute(new DisplayNameAttribute("页码"));
		this.setProperty("comment").hasAttribute(new DisplayNameAttribute("读后感"));
		this.setProperty("employeeId").hasAttribute(new DisplayNameAttribute("创建人")).hasAttribute(new RequiredAttribute("创建人为必填项"));
		this.setProperty("readDate").hasAttribute(new DisplayNameAttribute("阅读日期")).hasAttribute(new RequiredAttribute("阅读日期为必填项"));
		this.setProperty("employeeName").hasAttribute(new DisplayNameAttribute("阅读人")).hasAttribute(new RequiredAttribute("阅读人为必填项"));
	}
}